#!/bin/csh
# Script: renames a file -- C/TC shells

if ( $#argv < 2 ) then        # Argument checking
	echo "Usage: $0 file1 file2 " 
	exit 1
endif
if ( -e $1 ) then             # Check for file existence
	mv $1 $2                  # Rename file1
	echo $1 has been renamed to $2
else
	echo "$1 doesn't exist"
	exit 2
endif
